<%--
  Created by IntelliJ IDEA.
  User: YanHilin
  Date: 2020/4/24
  Time: 9:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div id="head">
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
        <a class="navbar-brand" href="#">ENTERPRISE</a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
                aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>

        <div class="collapse navbar-collapse" id="navbarSupportedContent">
            <ul class="navbar-nav mr-auto">
                <li class="nav-item active">
                    <a class="nav-link" href="page/enterprise/indexEnterprise.jsp">首页 <span class="sr-only">(current)</span></a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="javascript:void(0)">
                    <img src="static/picEnterprise/${sessionScope.enterprise.head_sculpture}" width="30px" height="30px" style="border-radius: 50%"/>
                    </a>
                </li>
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown1" role="button"
                       data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">${sessionScope.enterprise.enterpriseid}</a>
                    <div class="dropdown-menu" aria-labelledby="navbarDropdown1">
                        <a class="dropdown-item" href="page/enterprise/showMess.jsp">查看基本信息</a>
                       <%-- <a class="dropdown-item" href="enterpriseServlet?action=showSelfMess&enterpriseid=${sessionScope.enterprise.enterpriseid}">查看基本信息</a>--%>
                        <a class="dropdown-item" href="page/enterprise/editMess.jsp">编辑基本信息</a>
                        <a class="dropdown-item" href="page/enterprise/modifyPhoto.jsp">修改头像</a>
                        <a class="dropdown-item" href="page/enterprise/modifyPass.jsp">修改密码</a>
                        <a class="dropdown-item" href="page/enterprise/deleteSelf.jsp">注销</a>
                    </div>
                </li>

                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown2" role="button"
                       data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                       我的鲜花
                    </a>
                    <div class="dropdown-menu" aria-labelledby="navbarDropdown2">
                        <a class="dropdown-item" href="enterprise/flowerServlet?action=queryPageByEnterpriseid&enterpriseid=${sessionScope.enterprise.enterpriseid}">所有鲜花</a>
                        <a class="dropdown-item" href="page/enterprise/editFlower.jsp">鲜花上架</a>
                    </div>
                </li>

                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown3" role="button"
                       data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        我的订单
                    </a>
                    <div class="dropdown-menu" aria-labelledby="navbarDropdow3">
                       <%-- <a class="dropdown-item" href="orderItemServlet?action=enterpriseOrderItems">所有订单</a>--%>
                        <a class="dropdown-item" href="orderItemServlet?action=enterpriseOrderItem&status=0">待发货</a>
                        <a class="dropdown-item" href="orderItemServlet?action=enterpriseOrderItem&status=1">已发货</a>
                        <a class="dropdown-item" href="orderItemServlet?action=enterpriseOrderItem&status=2">用户待评价</a>
                        <a class="dropdown-item" href="orderItemServlet?action=enterpriseOrderItem&status=3">已完成</a>

                    </div>
                </li>

                <li class="nav-item active">
                    <a class="nav-link" href="enterpriseServlet?action=logout">退出</a>
                </li>
            </ul>
        </div>
    </nav>
</div>




